bitkeeper revision 1.1159.1.305 (41821c04Hgz7FcHvApbz2HGtGaBtjA)
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Fri, 29 Oct 2004 10:31:32 +0000 (10:31 +0000)
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Fri, 29 Oct 2004 10:31:32 +0000 (10:31 +0000)
blkif.py:
  Distinguish between /dev/hda1 and /dev/hda11 when processing mount output.

tools/python/xen/xend/server/blkif.py

index 5a013b19041a4014e7f0925920e3d26490a8ce85..9ca8eab5fe02b51de71dd3f9c46f70ca895c5506 100755 (executable)
@@ -26,7 +26,7 @@ def check_mounted(self, name):
     mode = None
     name = expand_dev_name(name)
     lines = os.popen('mount 2>/dev/null').readlines()
-    exp = re.compile('^' + name + '.*[\(,]r(?P<mode>[ow])[,\)]')
+    exp = re.compile('^' + name + ' .*[\(,]r(?P<mode>[ow])[,\)]')
     for line in lines:
         pm = exp.match(line)
         if not pm: continue